package com.songlanyun.modules.shop.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.common.utils.Query;
import com.songlanyun.modules.shop.dao.UnionBusinessRelationDao;
import com.songlanyun.modules.shop.entity.ShopAdminRelationEntity;
import com.songlanyun.modules.shop.entity.UnionBusinessRelationEntity;
import com.songlanyun.modules.shop.service.UnionBusinessRelationService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("yxtUnionBusinessRelationService")
public class UnionBusinessRelationServiceImpl extends ServiceImpl<UnionBusinessRelationDao, UnionBusinessRelationEntity> implements UnionBusinessRelationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<UnionBusinessRelationEntity> page = this.page(
                new Query<UnionBusinessRelationEntity>().getPage(params),
                new QueryWrapper<UnionBusinessRelationEntity>()
        );

        return new PageUtils(page);
    }
}
